﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DeviceMaintainGIS.Model.Field
{
    /// <summary>
    /// 现场服务信息
    /// </summary>
    public class FieldRequest
    {
        /// <summary>
        /// 现场服务ID
        /// </summary>
        public string Guid { get; set; }

        /// <summary>
        /// 报修编号
        /// </summary>
        public string RepairId { get; set; }
        /// <summary>
        /// 故障排查
        /// </summary>
        public string Describe { get; set; }
        /// <summary>
        /// 结论 1维修2换新3修和换
        /// </summary>
        public int RepairOrChange { get; set; }
        /// <summary>
        /// 状态 0保存 1提交 -1 结束
        /// </summary>
        public int State { get; set; }
        /// <summary>
        /// 图片地址 多个图片，间隔
        /// </summary>
        public List<FieldImage> List { get; set; }
        /// <summary>
        /// 当前操作人
        /// </summary>
        public int OperatorID { get; set; }
        /// <summary>
        /// 下一步操作人
        /// </summary>
        public int NextOperatorID { get; set; }
        /// <summary>
        /// 操作步骤
        /// </summary>
        public int Step { get; set; }
    }
    /// <summary>
    /// 现场图片信息
    /// </summary>
    public partial class FieldImage
    {
        /// <summary>
        /// 图片地址
        /// </summary>
        public string url { get; set; }
        /// <summary>
        /// 图片添加时间
        /// </summary>
        public System.DateTime AddTime { get; set; }
        /// <summary>
        /// 图片模块ID
        /// </summary>
        public int ModuleID { get; set; }
    }
    /// <summary>
    /// 现场查询信息
    /// </summary>
    public class FieldSelectRequest
    {
        public FieldSelectRequest()
        {
            this.PageIndex = 1;
            this.PagesSize = 20;
        }
        /// <summary>
        /// 当前页数
        /// </summary>
        public int PageIndex { get; set; }
        /// <summary>
        /// 当先显示多少条
        /// </summary>
        public int PagesSize { get; set; }
        /// <summary>
        /// 操作人
        /// </summary>
        public int OperatorID { get; set; }
        /// <summary>
        /// 操作步骤
        /// </summary>
        public int Step { get; set; }
        /// <summary>
        /// 报修编号
        /// </summary>
        public string RepairId { get; set; }
        /// <summary>
        /// 现场服务ID
        /// </summary>
        public string FieldID { get; set; }
    }

}
